﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.Master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Contact" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server" />
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

Don't bother trying SQL Injection, Cross-Site Scripting, or other types of attacks here.  I am a Web Developer, and I'm smarter than most of you. <br /><br />

<asp:UpdatePanel ID="up1" runat="server"><ContentTemplate>
	<table style="width: 80%; vertical-align: top;">
		<tr>
			<td>Name:</td>
			<td><asp:TextBox ID="txtName" runat="server" width="300" MaxLength="50" /></td>
		</tr>
		<tr>
			<td>Email Address:</td>
			<td><asp:TextBox ID="txtEmail" runat="server" width="300" MaxLength="80" /></td>
		</tr>
		<tr>
			<td>Message:</td>
			<td><asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine" Height="200" width="300" MaxLength="2000" /></td>
		</tr>
	</table>
	<asp:Label ID="lblErr" runat="server" Text="" ForeColor="#FF0000" />
	</ContentTemplate></asp:UpdatePanel>
<br /><br />
<table style="width: 80%; vertical-align: top;">
<tr>
		<td>Prove you're a human: </td>
		<td runat="server" id="tdRecaptcha">
			<recaptcha:RecaptchaControl ID="reCaptcha" runat="server" PublicKey="6LeQJwUAAAAAAA2egr3aUTNvtXLNdrjhItPsiNLY" PrivateKey="6LeQJwUAAAAAAG_kys7A9Bd-Rl8OVqUoX1QzjgDf" />
		</td>
		</tr>
		<tr>
		<td>Finally, submit your feedback:</td>
		<td>
			<asp:UpdatePanel ID="up4" runat="server"><ContentTemplate>
				<asp:Button ID="btnSubmit" runat="server" Text="Submit &gt;" Width="100" OnClick="btnSubmit_Click" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<asp:Button ID="btnClear" runat="server" Text="&lt; Clear" Width="100" OnClick="btnClear_Click" /> <br />
			</ContentTemplate></asp:UpdatePanel>
		</td>
	</tr>
</table>
</asp:Content>
